Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the password section in urlstr contains special characters, let Parse be able to parse it correctly #33

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

lisaiscoding
Copy link

When the password section in urlstr contains special characters, let Parse be able to parse it correctly

decode the password after `url.Parse(urlstr)`
@lisaiscoding lisaiscoding changed the title Update dburl.go When the password section in urlstr contains special characters, let Parse be able to parse it correctly Oct 18, 2023
lisaiscoding and others added 10 commits October 18, 2023 18:53
…o handle comlicated password like: A7p0@jch5Vj_+-,&=!@$%^*()
fix "log" imported and not used
	// Use regex to find and encode the password twice to handle comlicated
	// password like: A7p0jch5Vj_+-,&=!@#$%^*(). Since inside the url.Parse will
	// call unescape(`parse` --> `parseAuthority` --> `unescape`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant